<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script src="https://cdn.bootcdn.net/ajax/libs/vue/2.6.10/vue.js"></script>
    <title>Document</title>
</head>
<body>
<div id="app">
<!-- v-on 可以简写为@:v-on:click="" ==> @click="" -->
    <button @click="fn1">点我1</button>

    <button @click="fn2($event)">点我2</button>

    <button @click="fn3($event,2)">点我2</button>
</div>
<script>
    const vm = new Vue({
        el:"#app",
        data(){
            return{}
        },
        methods:{
            fn1(event){
                console.log(event,"fn1");
            },
            fn2(event){
                console.log(event,"fn2");
            },
            fn3(event,a){
                console.log(event,"fn3",a)
            }
        }
    })
</script>
</body>
</html>